import random
allchar = "0123456789ABCDEF"
allchar1 = list(allchar)
with open ("mac.txt","w+",encoding="utf_8") as mac:
    for i in range(100):
        mac.write(f"mac地址为：01-AF-3B")
        for k in range(3):
            mac.write("-")
            for j in range(2):
                b = random.randint(0,15)
                allchar1[b]
                mac.write(f"{allchar[b]}")
        mac.write("\n")

